<?php 
namespace Admin\Model;

/**
 * 地区类
 */
class AreasModel extends BaseModel {
	/**
	 * 分页列表
	 */
     public function queryByPage(){
        $m = M('areas');
        $parentId = I("parentId",0);
	 	$sql = "select * from __PREFIX__areas where parentId=".(int)$parentId." and areaFlag=1 order by areaSort asc,areaId asc";
		return $m->pageQuery($sql);
	 }


}




 ?>